
.ai-generation-container {
  padding: 20px;
  background-color: #f5f7fa;
  min-height: 100vh;
}

.header {
  margin-bottom: 20px;
}

.header h1 {
  font-size: 24px;
  color: #303133;
}

.form-section {
  margin-bottom: 20px;
}

.action-section {
  text-align: center;
  margin-bottom: 20px;
}

.action-section .el-button {
  padding: 12px 24px;
  font-size: 16px;
}

.analysis-result {
  margin-top: 10px;
}

.analysis-item {
  margin-bottom: 15px;
}

.analysis-item strong {
  color: #409eff;
}

.file-info {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.file-info el-icon {
  margin-right: 8px;
}

.file-size {
  color: #909399;
  font-size: 12px;
  margin-left: 8px;
}

.result-content {
  max-height: 600px;
  overflow-y: auto;
}

.result-header {
  margin-bottom: 20px;
}

.result-actions {
  margin-top: 20px;
  text-align: right;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ai-generation-container {
    padding: 10px;
  }
  
  .header h1 {
    font-size: 20px;
  }
  
  .form-section .el-row {
    display: flex;
    flex-direction: column;
  }
  
  .form-section .el-col {
    width: 100% !important;
    margin-bottom: 15px;
  }
  
  .action-section {
    margin-top: 20px;
  }
  
  .history-records {
    margin-bottom: 20px;
  }
  
  .history-item-title {
    font-size: 12px;
  }
  
  .history-item-meta {
    font-size: 10px;
  }
  
  .help-info,
  .workflow-info {
    margin-bottom: 20px;
  }
  
  .workflow-step {
    padding-left: 35px;
  }
  
  .help-content li,
  .step-text {
    font-size: 13px;
  }
  
  .section-container {
    padding: 15px;
  }
  
  .section-title {
    font-size: 14px;
  }
  
  .el-dialog {
    width: 95% !important;
    margin: 10px;
  }
  
  .result-content {
    max-height: 400px;
  }
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
  
/* 增强卡片样式 */
.el-card {
  border-radius: 8px !important;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease;
  overflow: hidden;
}

.el-card:hover {
  box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

/* 表单提示词样式 */
.form-tip {
  color: #909399;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.form-tip:hover {
  color: #606266;
}

/* 增强按钮样式 */
.el-button {
  transition: all 0.3s ease;
  border-radius: 6px;
}

.el-button:hover:not(.is-disabled) {
  transform: translateY(-1px);
}

.el-button--primary {
  background: linear-gradient(135deg, #409eff, #69b1ff);
  border: none;
}

.el-button--primary:hover:not(.is-disabled) {
  background: linear-gradient(135deg, #337ecc, #5393d9);
}

/* 输入框和选择框样式增强 */
.el-input__wrapper,
.el-select .el-input__wrapper {
  border-radius: 6px;
  transition: all 0.3s ease;
}

.el-input__wrapper:hover,
.el-select .el-input__wrapper:hover {
  border-color: #c6e2ff !important;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2) !important;
}

.el-input__wrapper.is-focus,
.el-select .el-input__wrapper.is-focus {
  border-color: #409eff !important;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2) !important;
}

/* 标签页样式增强 - 已合并到单个页面，此样式保留供参考 */
.el-tabs__item {
  transition: all 0.3s ease;
  border-radius: 6px 6px 0 0;
  margin-right: 8px;
}

.el-tabs__item:hover {
  color: #409eff;
  background-color: #ecf5ff;
}

.el-tabs__item.is-active {
  color: #409eff;
  background-color: #fff;
  font-weight: 500;
}

.el-tabs__active-bar {
  height: 3px;
  background: linear-gradient(90deg, #409eff, #69b1ff);
}

/* 合并页面后的区域样式 */
.section-container {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #fafafa;
  border-radius: 8px;
  border-left: 4px solid #409eff;
}

.section-container:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ebeef5;
}

@media screen and (max-width: 768px) {
  .section-container {
    padding: 15px;
  }
  
  .section-title {
    font-size: 14px;
  }
}
  
/* 表格样式增强 */
.el-table {
  border-radius: 8px;
  overflow: hidden;
}

.el-table th {
  background-color: #f8f9fa;
  font-weight: 500;
  color: #409eff;
}

.el-table tr:hover > td {
  background-color: #f5faff !important;
}

.result-table-row.current-row > td {
  background-color: #e6f7ff !important;
}

/* 文件上传区域样式增强 */
.upload-demo {
  border: 2px dashed #dcdfe6;
  border-radius: 8px;
  transition: all 0.3s ease;
  padding: 40px 20px;
  background-color: #fafafa;
  width: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
  
/* 帮助信息区域样式 */
.help-info {
  display: flex;
  align-items: flex-start;
}

.help-content {
  padding: 15px;
}

.help-content ul {
  padding-left: 0;
  list-style: none;
}

.help-content li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  color: #606266;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding-left: 10px;
}

.help-content li:hover {
  background-color: #f0f9ff;
  color: #409eff;
  transform: translateX(5px);
}

.help-content li i {
  color: #67c23a;
  margin-right: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.help-content li:hover i {
  color: #409eff;
  transform: scale(1.2);
}

.note-tip {
  margin-top: 20px;
  padding: 15px;
  background-color: #ecf5ff;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(64, 158, 255, 0.1);
}

.note-tip span {
  margin-left: 10px;
  color: #409eff;
  font-size: 14px;
  line-height: 1.5;
}

/* 历史记录区域样式 */
.history-records {
  display: flex;
  align-items: flex-start;
}

.history-section {
  margin-bottom: 20px;
}

.history-section:last-child {
  margin-bottom: 0;
}

.history-title {
  font-size: 14px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
}

.history-title el-icon {
  margin-right: 8px;
  color: #409eff;
}

.history-list {
  max-height: 200px;
  overflow-y: auto;
}

.history-item {
  padding: 10px;
  margin-bottom: 8px;
  background-color: #f8f9ff;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.history-item:hover {
  background-color: #e6f7ff;
  transform: translateX(2px);
}

.hoverable {
  cursor: pointer;
}

.custom-tooltip {
  max-width: 300px;
  line-height: 1.6;
}

.history-item-title {
  font-size: 13px;
  color: #303133;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-meta {
  font-size: 11px;
  color: #909399;
  margin-bottom: 6px;
}

.history-item-actions {
  text-align: right;
}

.history-item-actions .el-button {
  font-size: 12px;
  padding: 4px 8px;
  height: auto;
}
  

  

  
.upload-demo:hover {
  border-color: #409eff;
  background-color: #ecf5ff;
}

.upload-subtitle {
  font-size: 12px;
  color: #909399;
  margin-top: 8px;
}

/* 弹窗样式增强 */
.el-dialog {
  border-radius: 12px;
  overflow: hidden;
}

.el-dialog__header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ebeef5;
}

.el-dialog__footer {
  border-top: 1px solid #ebeef5;
  padding-top: 15px;
}

/* 标签样式增强 */
.el-tag {
  transition: all 0.3s ease;
  border-radius: 4px;
}

/* 分析结果样式 */
.analysis-result {
  line-height: 1.8;
}

.analysis-item p {
  margin: 5px 0 0 0;
  color: #606266;
}
  
/* 流程指示器样式 */
.process-indicator {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 20px;
  transition: all 0.3s ease;
}

.process-step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 15px;
  right: -20px;
  width: 40px;
  height: 2px;
  background-color: #dcdfe6;
  transition: all 0.3s ease;
}

.process-step.active:not(:last-child):after {
  background-color: #409eff;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #dcdfe6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.process-step.active .step-circle {
  background-color: #409eff;
  transform: scale(1.1);
}

.process-step.error .step-circle {
  background-color: #f56c6c;
}

.step-text {
  font-size: 12px;
  color: #606266;
  text-align: center;
  max-width: 80px;
  transition: all 0.3s ease;
}

.process-step.active .step-text {
  color: #409eff;
  font-weight: 500;
}

.process-step.error {
  color: #f56c6c;
}

.process-step.error .step-circle {
  background-color: #f56c6c;
}

.process-step.error .step-text {
  color: #f56c6c;
}

.error-notification {
  margin-bottom: 20px;
}
  
/* 思维导图样式 */
.mindmap-container {
  margin-top: 20px;
  animation: fadeIn 0.5s ease-out;
}

.mindmap-content {
  padding: 20px;
  background-color: #f0f9ff;
  border-radius: 8px;
  border-left: 4px solid #409eff;
  line-height: 1.8;
}

.mindmap-content p {
  margin: 8px 0;
  color: #409eff;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* 加载状态增强 */
.el-loading-spinner {
  transform: scale(1.2);
}

/* 无历史记录提示样式 */
.no-history {
  text-align: center;
  padding: 40px 20px;
  color: #909399;
}

.no-history-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #c0c4cc;
}

/* 历史记录列表样式增强 */
.history-list {
  max-height: 300px;
  overflow-y: auto;
}

.history-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item.hoverable:hover {
  background-color: #f5f7fa;
}

.history-item-title {
  font-size: 14px;
  color: #303133;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-meta {
  font-size: 12px;
  color: #909399;
  margin-bottom: 8px;
}

.history-item-actions {
  text-align: right;
}

/* 打印样式 */
@media print {
  .action-section,
  .el-button,
  .el-upload,
  .upload-success-tag,
  .el-dialog__headerbtn {
    display: none !important;
  }
  
  .ai-generation-container {
    background-color: white;
  }
  
  .el-dialog {
    box-shadow: none;
    border: none;
  }
}
